package lab02.test30;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Test30 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        System.out.println("请输入数组长度：");
        int i = s.nextInt();

        double[] score = new double[i];
        double sum = 0;
        System.out.println("请输入分数：");

        for (int j = 0; j < score.length; j ++){
            score[j] = s.nextInt();
            sum += score[j];
        }
        System.out.println("平均分："+sum/score.length);

    }
}

